package com.bxj.wxtt.api.constant;

/**
 * Created by baixiujiang on 17/11/16.
 */
public enum ComicPartLinkTypeEnum {
    AUDIO_PART_LINK_TYPE_NONE(0, ""),
    AUDIO_PART_LINK_TYPE_SITE(1, "站内地址"),
    AUDIO_PART_LINK_TYPE_EXTERNAL_SITE(2, "站外地址");

    Integer value;
    String desc;

    ComicPartLinkTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static ComicPartLinkTypeEnum valuesOf(int value) {
        for (ComicPartLinkTypeEnum comicPartLinkTypeEnum : values()) {
            if (comicPartLinkTypeEnum.getValue() == value) {
                return comicPartLinkTypeEnum;
            }
        }
        return AUDIO_PART_LINK_TYPE_NONE;
    }
}
